package com.lzx.shop.model;

/**
 * @author 刘正星
 * @version 1.0.0
 * @ClassName Result.java
 * @Description TODO
 * @createTime 2021年03月18日 00:16:00
 */

public class Result<T> {


    private boolean isSuccess = true;

    /**
     * @Fields code : 返回状态码
     */
    private String code;

    /**
     * @Fields msg : 返回消息描述
     */
    private String msg;

    /**
     * @Fields data : 返回实体数据
     */
    private T data;

    public Result() {
    }

    /**
     *
     * @param code
     * @param msg
     */

    public Result(boolean isSuccess,String code, String msg) {
        this.isSuccess = isSuccess;
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public boolean isSuccess() {
        return isSuccess;
    }

    public void setSuccess(boolean success) {
        isSuccess = success;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
